<template>
	<view class="article">
		<view class="parse_view">
			<uv-parse :preview-img="false" :content="content"></uv-parse>
		</view>
	</view>
</template>

<script setup>
	import {
		ref
	} from "vue";
	import {
		onLoad
	} from "@dcloudio/uni-app";

	import {
		getParam
	} from '@/util/request/api.js';

	const content = ref("");

	onLoad(async (option) => {
		let res = await getParam({
			params: {
				key: option.key
			}
		});
		content.value = res;
	});
</script>
<style lang="scss" scoped>
	.article {
		min-height: calc(100vh - var(--window-top));
		overflow: hidden;

		.parse_view {
			line-height: 48rpx !important;
			// color: #999999;
			font-size: 28rpx;
			padding: 30rpx;
			box-sizing: border-box;
		}
	}
</style>